import {Component, Input, OnInit} from '@angular/core';
import {ListService} from '../../../../services/list/list.service';
import {Subject} from 'rxjs';

@Component({
  selector: 'app-list',
  templateUrl: './list.component.html',
  styleUrls: ['./list.component.less']
})
export class ListComponent implements OnInit {
  @Input() isCollapsed: boolean;
  currentListUuid = '';

  constructor(
    private listService: ListService
  ) {
  }

  ngOnInit() {
  }

  click(msg: string): void {
    // this.listService.setCurrentUuid(uuid);
    this.listService.eventBus.next(msg);
  }
}
